<template>
    <div class="login">
        登录

        <el-button type="primary" @click="handleLogin">登陆</el-button>
    </div>
</template>

<script>
import globalState from '@/globalState';
export default {
    methods: {
        handleLogin() {
            this.$router.push('/');
            globalState.setGlobalState({
                token: Math.floor(Math.random() * 10000000),
            });
        },
    },
};
</script>

<style></style>
